﻿@model CustomerManagement.DataAccess.Area


@using (Html.BeginForm("EditPartial", "Area", FormMethod.Post, new { @class = "modal-form" }))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">
            ×</button>
        <h3>
            Edit Customer: @Html.HiddenFor(model => model.Id) </h3>
    </div>
    <div class="modal-body form-horizontal">

        @Html.HiddenFor(model => model.Id)

        <div class="control-group">
            @Html.LabelFor(model => model.District, new { @class = "control-label" })
            <div class="controls">
                @Html.EditorFor(model => model.District)
                @Html.ValidationMessageFor(model => model.District, null, new { @class = "help-inline" })
            </div>
        </div>

        <div class="control-group">
            @Html.LabelFor(model => model.City, new { @class = "control-label" })
            <div class="controls">
                @Html.EditorFor(model => model.City)
                @Html.ValidationMessageFor(model => model.City, null, new { @class = "help-inline" })
            </div>
        </div>

        <div class="modal-footer form-actions no-color">
            <input type="submit" value="Save" class="btn btn-small btn-primary" />
            <a id=".btn-close" class="btn btn-small" data-dismiss="modal">Cancel</a>
        </div>
    </div>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}

